const homeChildRoutes = [//home的子路由配置
    {
        path: '/welcome',
        name: 'Welcome',
        component: () => import("@/views/welcome.vue"),
        meta: {
            position: []
        }
    },
    {
        path: '/info/dep',
        name: 'InfoDep',
        component: () => import("@/views/info/dep/index.vue"),
        meta: {
            position: ["基础信息", "部门信息"]
        }
    },
    {
        path: '/info/emp',
        name: 'InfoEmp',
        component: () => import("@/views/info/emp/index.vue"),
        meta: {
            position: ["基础信息", "员工信息"]
        }
    },
    {
        path: '/security/role',
        name: 'Security/Role',
        component: () => import("@/views/security/role/index.vue"),
        meta: {
            position: ["安全管理", "角色管理"]
        }
    },
    {
        path: '/security/user',
        name: 'Security/User',
        component: () => import("@/views/security/user/index.vue"),
        meta: {
            position: ["安全管理", "用户管理"]
        }
    },
    {
        path: '/leave/apprev',
        name: 'LeaveApprev',
        component: () => import("@/views/leave/apprev/index.vue"),
        meta: {
            position: ["流程", "申请和确认"]
        }
    },
    {
        path: '/leave/exam',
        name: 'LeaveExam',
        component: () => import("@/views/leave/exam/index.vue"),
        meta: {
            position: ["流程", "审批"]
        }
    },
	{
	    path: '/sign/info',
	    name: 'SignInfo',
	    component: () => import("@/views/sign/info.vue"),
	    meta: {
	        position: ["签到", "打卡"]
	    }
	},
	{
	    path: '/sign/manage',
	    name: 'SignManage',
	    component: () => import("@/views/sign/manage.vue"),
	    meta: {
	        position: ["签到", "签到管理"]
	    }
	},{
	    path: '/sign/detail',
	    name: 'SignDeatil',
	    component: () => import("@/views/sign/deatil.vue"),
	    meta: {
	        position: ["签到", "签到详情"]
	    }
	},{
	    path: '/file/manage',
	    name: 'manageFile',
	    component: () => import("@/views/file/manageFile.vue"),
	    meta: {
	        position: ["文件", "文件管理"]
	    }
	},
	{
	    path: '/file/list',
	    name: 'listFile',
	    component: () => import("@/views/file/listFile.vue"),
	    meta: {
	        position: ["文件", "查询文件"]
	    }
	},
	{
	    path: '/ai/bi',
	    name: 'AIBI',
	    component: () => import("@/views/chat/BI.vue"),
	    meta: {
	        position: ["AI", "BI图"]
	    }
	},
	{
	    path: '/ai/questions',
	    name: 'AIQuestions',
	    component: () => import("@/views/chat/questions.vue"),
	    meta: {
	        position: ["AI", "提问"]
	    }
	},
];


const routes = [
    {
        path:'/',
        redirect:'/security/home'
    },
    {
        path: '/test',
        name: 'Test',
        component: () => import("@/views/test.vue")
    },
    {
        path: '/security/login',
        name: 'SecurityLogin',
        component: () => import("@/views/security/login/index.vue")
    },
    {
        path: '/security/home',
        name: 'SecurityHome',
        component: () => import("@/views/security/home/index.vue"),
        children: homeChildRoutes
    },

];
export default routes;